#pragma once
#include <cstdio>

inline void assert_true(bool expr, const char *file, uint line)
{
    if (!expr)
    {
        printf("[error] expect true. file: %s line: %d\n", file, line);
    }
}

inline void assert_false(bool expr, const char *file, uint line)
{
    if (expr)
    {
        printf("[error] expect false. file: %s line: %d\n", file, line);
    }
}

#define ASSERT_TRUE(x) assert_true(x, __FILE__, __LINE__)
#define ASSERT_FALSE(x) assert_false(x, __FILE__, __LINE__)
